package daily.may0528;

public class SleepThreadTest {
    public static void main(String[] args) throws InterruptedException {
        //模拟秒表
        for (int i = 5; i > 0; i--) {
            System.out.println("倒计时：" + i + "秒");
            //线程睡眠1000毫秒
            Thread.sleep(1000);
        }
    }
}
